//
//  UIDevice+IdentifierAddition.h
//  MobileChecker
//
//  Created by ehanxuan on 2015/01/14.
//  Copyright (c) 2015年 Lymons. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>

#define DEVICE_TOTAL_VOLUME         [NSString stringWithFormat:@"%.1fGB", [UIDevice currentDevice].totalSpace / 1024]

@interface UIDevice (IdentifierAddition)

@property(nonatomic,readonly,retain) NSString   *serialNumber;          // this will return nil in ios 8.0
@property(nonatomic,readonly,retain) NSString   *carrierName;
@property(nonatomic,readonly,retain) NSString   *machineType;           // e.g. iPhone4,1
@property(nonatomic,readonly,retain) NSString   *machineShortName;      // e.g. iPhone4S
//@property(nonatomic,readonly,retain) NSString   *machineDetailName;   // e.g. iPhone 5c (Model A1456, A1532)

@property(nonatomic,readonly,assign) float       totalSpace;            // e.g. 65536 (MB)

@property(nonatomic,readonly,assign) BOOL        hasSimCard;
@property(nonatomic,readonly,assign) BOOL        hasGPS;
@property(nonatomic,readonly,assign) BOOL        hasVibration;

@end
